<%@page import="java.text.SimpleDateFormat"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="/WEB-INF/tld/c.tld"  %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html>
  <head>
    <base href="<%=basePath%>">
    <title></title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">  
	 <style media="print">
        .Noprint
        { 
            display: none;
        }
        .PrintOnly
        {
            display: block;
        }
    </style>  
	<style type="text/css">
		
		.flat{
			padding-left:5px;
			border: 0;
			border-bottom: solid 1px #000000;
		}
		.divRight{
			border: solid 1px #000000;
			line-height: 20px;
			font-size:12px;
			position: absolute;
			right: 20px;top:40px;width: 150px;text-align: center;
		}
		/* 表格2 打印 */
	.tbl_export {border-right: 1px solid black;border-bottom: 1px solid black;font-size: 12px;width: 99%;line-height: 16px;}
	.tbl_export.outBorder {border: 1px solid gray;font-size: 14px;}
	.tbl_export.noBorder {border: none;}
	.tbl_export th {border-left: 1px solid black;border-top: 1px solid black;font-weight: bold;text-align: center;}
	.tbl_export td {line-height: 46px;border-left: 1px solid black;border-top: 1px solid black;text-align: center;}
	</style>
	<script type="text/javascript">
		function init(){
			window.print();
		}
	</script>
  </head>
  
  <body onload="init()">
	<!--   	class="table table-bordered table-hover definewidth m10" -->
	<h3 align="center">上海海事大学教学日历</h3>
	<div style="text-align: center;">
		<span>课程</span><input type="text" class="flat" value="${param.course_name }">
	</div>
	<div style="text-align: center;line-height: 35px">
		<span>学院</span><input type="text" class="flat" size="4" value="信息工程学院">
		<span>专业</span><input type="text" class="flat" size="4" value="计算机">
		<span>年级</span><input type="text" class="flat"  size="4" value="2012">
		<div>
			<input type="text" class="flat" size="2" value="2013"> — <input type="text" class="flat" size="2" value="2014"> 学年第  
			第<input type="text" class="flat" size="2" value="二">  学期
		</div>
	</div>
	
	
	<!-- 右边 -->
	<div class="divRight">
		<div>理论学时<input type="text" class="flat" size="2">学时</div>
		<div>上机学时<input type="text" class="flat" size="2">学时</div>
		<div>实验学时<input type="text" class="flat" size="2">学时</div>
		<div>实践学时<input type="text" class="flat" size="2"> 周</div>
		<div>总    共<input type="text" class="flat" size="2">学时</div>
	</div>
	
	<table class="tbl_export" style="margin-top: 15px;">
	    <thead>
	    	<tr>
	    		<th colspan="11">教 学 环 节 及 内 容</th>
	    	</tr>
		    <tr>
		        <th>周次</th>
		        <th>讲课内容<br>（教学大纲分章和题目的名称）</th>
		        <th>课堂时数</th>
		        <th>课外时数</th>
		        <th>习题课、课堂讨论、课程练习、测验的内容</th>
		        <th>课堂时数</th>
		        <th>课外时数</th>
		        <th>实验名称、课程作业、作图、课程设计的名称及现场教学</th>
		        <th>课堂时数</th>
		        <th>课外时数</th>
		        <th>书籍</th>
		    </tr>
	    </thead>
		<tbody>
			<c:forEach items="${list}" var="info">
				<tr>
					<td>${info.week}</td>
					<td>${info.course_content}</td>
					<td>
						<c:choose>
							<c:when test="${info.course_kt_hour eq 0 }">&nbsp;</c:when>
							<c:otherwise>
								${info.course_kt_hour }
							</c:otherwise>
						</c:choose>
					</td>
					<td>
						<c:choose>
							<c:when test="${info.course_kw_hour eq 0 }">&nbsp;</c:when>
							<c:otherwise>
								${info.course_kw_hour }
							</c:otherwise>
						</c:choose>
					</td>
					<td>${info.test_content}</td>
					<td>
						<c:choose>
							<c:when test="${info.test_kt_hour eq 0 }">&nbsp;</c:when>
							<c:otherwise>
								${info.test_kt_hour }
							</c:otherwise>
						</c:choose>
					</td>
					<td>
						<c:choose>
							<c:when test="${info.test_kw_hour eq 0 }">&nbsp;</c:when>
							<c:otherwise>
								${info.test_kw_hour }
							</c:otherwise>
						</c:choose>
					</td>
					<td>${info.lab_content}</td>
					<td>
						<c:choose>
							<c:when test="${info.lab_kt_hour eq 0 }">&nbsp;</c:when>
							<c:otherwise>
								${info.lab_kt_hour }
							</c:otherwise>
						</c:choose>
					</td>
					<td>
						<c:choose>
							<c:when test="${info.lab_kw_hour eq 0 }">&nbsp;</c:when>
							<c:otherwise>
								${info.lab_kw_hour }
							</c:otherwise>
						</c:choose>
					</td>
					<td>${info.books}</td>
		        </tr>
			</c:forEach>
		</tbody>
		<tfoot>
			<tr>
				<td colspan="11" align="left">
					<div style="text-align: left;">教学进度变更情况与原因：</div>
					<p style="display: block;height: 30px;">&nbsp;</p>
				</td>
			</tr>
		</tfoot>
	</table>
	<%
SimpleDateFormat sf =new SimpleDateFormat("yyyy年MM月dd日");
String sysdate=sf.format(new Date());
	 %>
	<div style="margin-top: 45px;text-align: center;">	
		<div>
			任课教师<input type="text" class="flat" size="5" value="杨智应">
			<span style="padding-left: 15px;">系（教研室）主任<input type="text" class="flat" size="5" value=""></span>
		</div>
		<div style="text-align: right;display: block;">日   期：<%=sysdate %></div>
	</div>
	<div style="padding-left: 40px;margin-bottom: 30px;">附注：本日历一式二份，一份讲授者自存，一份存学院。</div>
	                       
	
	<div style="position: absolute;border-bottom: 5px;left: 10px;font-weight: bold;">
		文件编号:&nbsp;C4/JW-7016/007
	</div>

	
  </body>
</html>
